package figuras;

import strategy.CalculoStrategy;
import composite.FiguraAbstrata;

public class Circulo extends FiguraAbstrata{
	
	private CalculoStrategy calculoStrategy;
	private Reta reta1;
	
	public Circulo() {
		super();
	}
	public Circulo(Reta reta1, CalculoStrategy calculoStrategy) {
		super();
		this.reta1 = reta1;
		this.calculoStrategy = calculoStrategy;
	}
	public double calcularArea(){
		return calculoStrategy.calcularArea(this);
	} 
	public double calcularPerimetro(){
		return calculoStrategy.calcularPerimetro(this);
	}
	public Reta getReta1() {
		return reta1;
	}
	public void setReta1(Reta reta1) {
		this.reta1 = reta1;
	}
	@Override
	public String toString() {
		return "Circulo [calculoStrategy=" + calculoStrategy + ", reta1="
				+ reta1 + "]";
	}

	
	
}